﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FlexFlow.Base.File
{
    /// <summary>
    /// 表示文件夹的有效访问模式
    /// </summary>
    [Flags]
    public enum FilePathAccessMode
    {
        /// <summary>
        /// 文件夹没有任何权限
        /// </summary>
        None = 0,
        /// <summary>
        /// 文件夹可被枚举
        /// </summary>
        List = 1,
        /// <summary>
        /// 文件夹中的文件可被下载
        /// </summary>
        Download = 2,
        /// <summary>
        /// 文件夹可被上传
        /// </summary>
        Upload = 4,
        /// <summary>
        /// 文件夹中的文件可被删除
        /// </summary>
        Delete = 8,
        /// <summary>
        /// 文件夹中的文件可被修改
        /// </summary>
        Modify = 16,
        /// <summary>
        /// 文件夹可枚举上传下载
        /// </summary>
        All = List | Upload | Download | Delete | Modify
    }
}
